import startSearchModel from "@/config/startSearchModel";

export default ()=>{
    return {
        submitText: '修改',
        size: 'small',
        labelWidth: 80,
        index:true,
        menuAlign: 'center',
        menuPosition: "right",
        permissionBtn: {
            addBtn: 'sys:dictionary:add',
            editBtn: 'sys:dictionary:edit',
            viewBtn: 'sys:dictionary:info',
            delBtn: 'sys:dictionary:delete',
        },
        column: [
            {
                label: '名称',
                span: 12,
                prop: 'name',
                search:true,
                searchModel:startSearchModel.LIKE_RIGHT,
                rules: [{
                    required: true,
                    trigger: "blur"
                }]
            },
            {
                label: '编码',
                span: 12,
                prop: 'code',
                search:true,
                searchModel:startSearchModel.LIKE_RIGHT,
                rules: [{
                    required: true,
                    trigger: "blur"
                }],
                addDisplay: true,
                editDetail: true,
            },

        ]
    }
}
